package org.ww;

public class TestDynamicLoad {
    static {
        System.out.println("------------load TestDynamicLoad-------------");
    }

    public static void main(String[] args) {
        new A();
        System.out.println("------------load main-----------------");
        B b = null;
    }
}

class A{
    static {
        System.out.println("-------------load  A--------------");
    }
}

class B{
    static {
        System.out.println("-----------load B-----------------------");
    }

    public B(){
        System.out.println("---------B  constructor-----------------");
    }
}

